package com.platform.qujia.utils.weixinapp;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import java.util.List;
import java.util.Map;

@Slf4j
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class WxTemplateMsg {
    private String touser;
    private String template_id;
    private String topcolor;
    private String url;
    private Map<String, WxTemplateData> data; //参数说明类型说明： WxTemplateData： value,color

    //数据格式
    /*{
        "touser":"OPENID",
        "template_id":"ngqIpbwh8bUfcSsECmogfXcV14J0tQlEpBO27izEYtY",
        "url":"http://weixin.qq.com/download",
        "topcolor":"#FF0000",
        "data":{
            "User": {
                "value":"黄先生",
                "color":"#173177"
            },
            "Date":{
                "value":"06月07日 19时24分",
                "color":"#173177"
            },
            "CardNumber":{
                "value":"0426",
                "color":"#173177"
            },
            "Type":{
                "value":"消费",
                "color":"#173177"
            },
            "Money":{
                "value":"人民币260.00元",
                "color":"#173177"
            },
            "DeadTime":{
                "value":"06月07日19时24分",
                "color":"#173177"
            },
            "Left":{
                "value":"6504.09",
                "color":"#173177"
            }
        }
    }*/

}
